Memory control device and method for controlling the same

ABSTRACT

The present invention provides a storage control device which enables the time between failures to prolong as much as possible, though it uses HDD&#39;s whose mean time between failures is relatively short. The storage control device controls spindle motors in a manner that a spindle motor is rotated regarding the HDD of data which can access from a host computer and a spindle motor is stopped regarding the HDD of data which are clearly judged that a host computer does not access the data. Whether the host computers can access the HDD or not is judged by the fact that whether the memory region (internal logical volume) provided by the HDD is in mapped to the host logical volume or not which is recognized by the host computer and is able to access thereby.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. application Ser. No.11/311,155, filed Dec. 20, 2005, which is a continuation of applicationU.S. Ser. No. 10/803,910, filed Mar. 19, 2004, relates to and Claimspriority from Japanese Patent Application No. 2003-428624, filed on Dec.25, 2003, the entire disclosures of which are incorporated herein byreference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a technique for controlling writing andreading of data from a upper device in a storage control device equippedwith a plurality of disk drives.

2. Description of the Related Art

There are hitherto the transaction and database as principalapplications of the storage control device such as a disk array system.In such applications severe requirements are thus imposed as regardshigh performance and high reliability. Therefore, the storage controldevice used for this application is equipped with a hard disk drive(HDD) with high performance and high reliability. As the HDD fullycomplying with the imposed requirements must be highly reliable as oneof parts, it would be usually highly expensive.

A technique for saving dissipation power of the disk array systemequipped with such HDD's has been proposed.

Such a technique is disclosed in, for example, JP-A-2000-293314.

However, such a technique of the prior art is not effective for the diskarray system or storage control device used for the applications such asback-up, restore, archive and the like.

SUMMARY OF THE INVENTION

In order to solve the problems described above, the present inventionhas the following features.

A upper device in the present invention comprises application programs,control programs, user interfaces, application interfaces and host bassadapters. Respective configurations and processing flow charts will beexplained in paragraphs describing the mode for carrying out theinvention.

The storage control device according to the present invention compriseschannel adapters, memories, disk adapters, a connecting device and aplurality of disk drives.

The channel adapter is connected to the upper device so that the channeladapter provides a first logical volume to the upper device and receivesdata which are sent from the upper device to the first logical volume.

The memory is connected to the channel adapter and stores data exchangedbetween the memory and the upper device, control information concerningthe data exchanged between the memory and the upper device, and theconfiguration information concerning the configuration of the storagecontrol device.

The disk adapter controls in a manner that data sent from the upperdevice to a first logical volume are read from the memory and written onthe memory as data addressed to second logical volume corresponding tothe first logical volume. The second logical volume is used as a regionfor storing the data in transmission and reception of the data betweenthe channel adapters and the disk adapters.

The connecting device is connecting between the channel adapters, memoryand disk adapters.

A plurality of disk drives are connected to the disk adapters so thatthe data to the second logical volume are written on the disk drives asdata group having a redundant relation by controlling of the diskadapters.

The channel adapter has processors to provide to the upper device alogical volume for control which is utilized when the configurationinformation in the memory is read by the upper device. The processor ofthe channel adapter causes other second logical volume instead of thesecond logical volume to correspond to the first logical volume inresponse to a change-over indication issued from the upper device to thelogical volume for control and causes to operate spindle motors of aplurality of disk drives on which data group corresponding to the secondlogical volume to be changed in response to the change-over indicationand having the redundant relation is written.

The processor of the channel adapter causes to stop the spindle motorsof a plurality of disk drives on which data group corresponding to thesecond logical volume to be changed in response to the change-overindication and having the redundant relation is written.

The processor of the channel adapter judges whether spindle motors ofthe plurality of disk drives are operating or not, on which disk drivesdata group corresponding to the another second logical volume designatedby the change-over indication and having the redundant relation iswritten, and if the spindle motor is operating, to cause the operationto continue, and if the spindle motor is not operating, to cause tooperate the spindle motor of the plurality of disk drives on which datagroup corresponding to the another second logical volume and having theredundant relation is written.

If one corresponding to the another second logical volume correspondingto the other first logical volume provided to the upper device exists inthe plurality of disk drives on which data group corresponding to thesecond logical volume to be changed in response to the change-overindication and having the redundant relation is written, the processorof the channel adapter causes the operation of the plurality of diskdrives to continue on which drives data group corresponding to thesecond logical volume to be changed in response to the change-overindication and having the redundant relation is written.

If one corresponding to the other second logical volume corresponding tothe other first logical volume provided to the upper device does notexist in the plurality of drives on which the data group correspondingto the second logical volume to be changed in response to thechange-over indication and having the redundant relation, the processorof the channel adapter causes to stop the operation of a plurality ofdisk drives on which disk drives the data group corresponding to thesecond logical volume to be changed in response to the change-overindication and having the redundant relation is written.

If the kind of command sent from the upper device to the logical volumefor control is a write command, the processor of the channel adapterwrites the content of the write command on the logical volume forcontrol and judges the content of the write command to be thechange-over indication.

In the case that the kind of the command sent from the upper device tothe logical volume for control is a read command, the processor of thechannel adapter judges the read command to be a configurationinformation, and reads the configuration information from the memory andsend it to the upper device.

In the case that a command sent from the upper device is the commandaddressed to the first logical volume, the processor of the channeladapter judges the command sent from the upper device to be a commandconcerning writing or reading of data, and also in the case that thecommand sent from the upper device is the command addressed to thelogical volume for control, the processor judges the command sent fromthe upper device to be a command concerning the control information.

Although the processor of the channel adapter performs various kinds ofcontrol in the above description, other control processor, for example,the processor of the disk adapter may preferably carry out the controlthe same as that described above. Moreover, it is preferable that theprocessor of the channel adapter and the processor of the disk adaptercarry out the control the same as the control described above incooperation with each other.

More detailed configuration and processing flow chart will be explainedin paragraphs of mode for carrying out the invention later.

According to the present invention, the effective controlling method canbe provided for disc array systems or storage control devices used forthe applications as back-up, restore and archive.

We intend to effect the back-up, restore and archive of data at a highspeed in a short period of time in consideration of various elementssuch as increased capacity of data memorized in the storage controldevice, variety of kinds thereof and operations around the clock.Therefore, we contemplate the back-up, restore and archive using thestorage control device equipped with HDD's as storage mediums for thefield in which the back-up and restore of data and archive are carriedout by tape drives, as well. In such applications, as large capacity isparticularly required, the requirement imposed upon the storage controldevice is to provide great capacity of memory at much less expensive.

In order to reply to the requirement, we intended to utilize the HDDusing the serial ATA (S-ATA) as interconnection interface which has beenused in less expensive desktop PC, at the sacrifice of the performanceand reliability to some extent.

As the HDD using fiber channel as interconnection interface ispredetermined to be provided in the host computer operating as a server,the HDD is inherently designed to operate around the clock. In contrastherewith, as the HDD using S-ATA as interconnection interface ispredetermined to be provided in the disk top PC and the like, the HDD isinherently designed to be used only a few hours every day.

In the HDD using S-ATA as interconnection interface, therefore, the meantime between failures (MTBF) which is one index of reliability is ingeneral designed to be shorter in comparison with the HDD using fiberchannel as interconnection interface. Accordingly, the HDD using S-ATAas interconnection interface is prone to failures in comparison with theHDD using fiber channel as interconnection interface, when the spindlemotor of the HDD is always rotated as in the operation around the clock.

On the other hand, it is unlikely that the access to the HDD as astorage medium always occurs in the application of the HDD to theback-up, restore and archive. In back-up or restore, for example,writing of data onto the storage control device would occur once or afew times a day, only when the back-up is obtained, and reading of datafrom the storage control device would occur very rarely, only whenrestoring. In the use of the archive, moreover, writing of data onto thestorage control device would occur only when the archive is obtained,while reading of data from the storage control device would occur onlywhen archived data are rarely referred.

In the storage control device used for applications of the back-up,restore and archive in this manner, the access to data of storage mediumdoes not occur frequently so that it is effective for the spindle motorof the HDD having the data stored therein to stop in the case that noaccess to the data occurs evidently.

Other objects, features and advantages of the invention will becomeapparent from the following description of the embodiments of theinvention taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an example of the hardware configuration of the storagecontrol device envisioned in the embodiment of the present invention;

FIG. 2 is one example of the correspondence of the hardwareconfiguration and logical configuration of the storage control deviceenvisioned in the embodiment of the present invention;

FIG. 3 is one example of the method for reading the configurationinformation by the logical configuration of the storage control deviceenvisioned in the embodiment of the present invention;

FIG. 4 is one example of configuration information table held in thestorage control device of the embodiment according to the invention andused for managing correspondence between the numbers of the host logicalvolumes and the internal logical volumes;

FIG. 5 is one example of configuration information table held in thestorage control device of the embodiment according to the invention andused for managing correspondence between the numbers of the ECC groupsand the numbers of the internal logical volumes provided by the ECCgroups;

FIG. 6 is one example of flow chart of the program operating in thechannel adapters of the embodiment according to the present invention;

FIG. 7 is one example of the method for changing the correspondencebetween the host logical volume and the internal logical volume in thestorage control device envisioned in the embodiment of the presentinvention;

FIG. 8 is one example of flow chart for changing the correspondencebetween the host logical volume and the internal logical volume by theprogram operating in the channel adapter of the embodiment according tothe present invention;

FIG. 9 is one example of configuration information table held in thestorage control device in the embodiment of the present invention andused for managing the correspondence between the numbers of the ECCgroups including HDD having the rotating spindle motor and the numbersof the internal logical volumes included in the ECC groups;

FIG. 10 is one example of configuration information table held in thestorage control device of the embodiment according to the presentinvention and used for managing the correspondence between the numbersof the ECC groups including HDD having the rotating spindle motor andthe numbers of the internal logical volumes included in the ECC groups;and

FIG. 11 is one example of the method for reading the configurationinformation by the logical configuration of the storage control deviceenvisioned of the embodiment according to the present invention.

DETAILED DESCRIPTION OF THE EMBODIMENTS

The control method for a disk array system without continuous operationof a spindle motor of HDD in consideration of the service life of theHDD using the S-ATA as an interconnection interface will be explainedwith reference to the drawings hereinafter.

According to the aspect for carrying out the invention, it will beexpected that the time until occurrence of fault, which is presumed bythe MTBF, can be prolonged by performing the control for stopping thespindle motor of the HDD, in comparison with the case using the spindlemotor of the HDD without its stoppage.

FIG. 1 illustrates a configuration of the storage control device.Reference numeral 1-1 shows the storage control device and numeral 1-2denotes a host computer connected to the storage control device. Thestorage control device 1-1 is equipped with a plurality of channeladapters 1-3. Each of the channel adapters 1-3 has a port 1-4 throughwhich the channel adapter 1-3 is connected to a host bus adapter (HBA)1-5 equipped in the host computer by means of, for example, a fiberchannel.

The storage control device 1-1 is equipped with a plurality of hard diskdrives (HDD) 1-6 as storage mediums. The storage control device 1-1 isfurther equipped with a plurality of disk adapters 1-7 for controllingthe plurality of HDD's 1-6. The disk adapters 1-7 each have a port 1-8for connecting the HDD's, by means of which the disk adapters 1-7 areconnected to the plurality of HDD's 1-6. The ports 1-8 and the pluralityof HDD's 1-6 are each connected by FC-Al of fiber channel, fabric orparallel SCSI or ATA or S-ATA.

The channel adapters 1-3 are each connected to the disk adapter 1-7 toeach other through an interconnection portion 1-9 to which a sharedmemory 1-10 as well as a cache memory 1-11 are connected. The channeladapters 1-3 and the disk adapters 1-7 are each equipped with amicroprocessor 1-12, 1-14 and a local memory 1-13, 1-15 in a pair. Inthe microprocessor 1-12 on the channel adapter 1-3, the program isexecuted for processing the command sent from the host computer 1-2. Inthe microprocessor 1-14 on the disk adapter 1-7, the program is executedfor controlling the plurality of HDD's 1-6. The program is operated bythe use of the local memory, respectively. In order to carry outprocessing in cooperation of the plurality of channel adapters 1-3 withthe plurality of disk adapters 1-7, control information which must beshared with one another is put in the shared memory 1-10. It is possiblefor the microprocessor 1-12 on each of the channel adapter 1-3 and themicroprocessor 1-14 on each of the disk adapter 1-7 to access thecontrol information in the shared memory through the interconnectionportion 1-9.

The cache memory 1-11 serves to temporarily store data which the hostcomputer 1-2 may access. As the cache memory 1-11 can access data at afaster rate than HDD 1-6, the cache memory 1-11 contributes toimprovement in the access performance (particularly responsibility tocommands) of the storage control device.

The left hand of FIG. 2 is a view explaining the storage control device1-1 described in FIG. 1 from the viewpoint of its physical configuration(a simplified view of FIG. 1). In contrast herewith, the right hand ofFIG. 2 is a view explaining the storage control device 1-1 from theviewpoint of its logical configuration. FIG. 2 is a view for explaininga mapping between the physical configuration and the logicalconfiguration.

A few of HDD's among the plurality of HDD's 2-6 are assembled to form anError Check and Correction group (ECC group) 2-12. The ECC group isconstituted as redundant array of independent disks (RAID) and protectsdata memorized from single-point fault of HDD in the ECC group.

The storage region formed by the ECC group is divided into one or pluralregions to produce internal logic volumes. In the example shown in FIG.2, one ECC group 2-12 is divided into two regions to produce twointernal logical volumes 2-13 and 2-14. The internal logical volumes2-13 and 2-14 are logical volumes provided by the program executed inthe microprocessor (1-14 in FIG. 1, not shown in FIG. 2) in the diskadapter 2-7.

In order that the host computer 2-2 reads and writes data out and on thestorage control device 2-1, it is required that the host computer 2-2has recognized the host logical volumes 2-15 and 2-16 provided by thestorage control device 2-1.

The host logical volumes 2-15 and 2-16 are logical programs which areprovided to the host computer 2-1 by programs executed in themicroprocessors (1-12 in FIG. 1, not shown in FIG. 2) in the channeladapters 2-3. For example, fiber channels and Logical Units (LU) in SCSImay map to the host logical volumes.

The host logical volumes 2-15 and 2-16 themselves are imaginary ones nothaving actual memory regions. The host logical volumes and the internallogical volumes map to one to one, respectively. The host logical volume2-15 maps to the internal logical volume 2-13 having an actual memoryregion for memorizing data, while host logical volume 2-16 maps to theinternal logical volume 2-14, respectively.

The mapping of the host logical volume and internal logical volume isstored as a configuration information in the shared memory 2-10 andcontrolled by the program executed in the microprocessor (1-12 in FIG.1, not shown in FIG. 2) in the channel adapter 2-3.

The data written from the host computer onto the host logical volume arewritten onto the internal logical volume having the actual memory regionaccording to the mapping between the host logical volume and theinternal logical volume. Namely, for example, the data that the hostcomputer 2-2 wrote on the top logical block of the host logical volume2-15 through the port 2-17 are actually written on the top logical blockof the internal logical volume 2-13. Similarly, for example, the datathat the host computer 2-2 wrote on the 100th logical block from the topof the host logical volume 2-16 are actually written on the 100thlogical block from the top of the internal logical volume 2-14.

FIG. 3 is a view newly drawn by further adding the details to thelogical configuration of the storage control device explained inconnection with the right hand of FIG. 2 for disclosing the presentinvention.

The storage control device 3-1 includes three ECC groups 3-3 to 3-5. Inthe memory region formed by the three ECC groups 3-3 to 3-5, fourinternal logical volumes 3-6 to 3-9 are formed. The internal logicalvolume 3-6 exists in the ECC group 3-3, the internal logical volume 3-7in the ECC group 3-4, and the internal logical volumes 3-8 and 3-9 inthe ECC group 3-5, respectively.

The storage control device 3-1 has two kinds of host logical volumes.The host logical volume (for data) of the one kind is used to store thedata that are recognized by the host computer 3-2 and to be used by theapplication program 3-12 in the host computer 3-2. The host logicalvalue (for control) of the other kind will be explained later. Aplurality of the host logical volumes (for data) and a plurality of thehost logical volumes (for control) can exist in the storage controldevice 3-1, respectively. FIG. 3 illustrates the host logical volume(for data) 3-10 and host logical volume (for control) 3-11 asrepresentative of these volumes.

In FIG. 3, there are four internal logical volumes 3-6 to 3-9 for onehost logical volume (for data) 3-10. A mapping change portion 3-13 isprovided between the host logical volume (for data) 3-10 and the fourinternal logical volumes 3-6 to 3-9. The mapping change portion 3-13serves to change the mapping between the host logical volume (for data)3-10 and the internal logical volumes 3-6 to 3-9 according to theindication from a mapping change and power control portion 3-14.

The mapping between the host logical volume and the internal logicalvolume is controlled by a program executed by the microprocessors in thechannel adapters. Therefore, both the mapping change portion 3-13 andthe mapping change and power control portion 3-14 are realized by thisprogram.

For example, when the host logical volume (for data) 3-10 is in themapping relation to the internal logical volume 3-6, the data written onthe top logical block of the host logical volume (for data) from thehost computer 3-2 through the port 3-15 are in fact written on the toplogical block of the internal logical volume 3-6.

Similarly, for example, when the host logical volume (for data) 3-10 isin the mapping relation to the internal logical volume 3-9, the datawritten on the top logical block of the host logical volume (for data)from the host computer 3-2 through the port 3-15 are written on the toplogical block of the internal logical volume 3-9.

A configuration information 3-17 holding the logical configuration ofthe storage control device is memorized in part of the shared memory3-16 in the storage control device 3-1. The configuration informationincludes a table for holding the mapping of the numbers of the hostlogical volumes and the numbers of the internal logical volumes inmapping relation to the host logical volumes as exemplarily shown inFIG. 4 and a table for holding the numbers of ECC groups and the numbersof the internal logical volumes included in the ECC groups asexemplarily shown in FIG. 5.

The change mapping between the host logical volume and the internallogical volume in the storage control device will be then explained inconnection with the indication from the host computer 3-2. There are twomethods for changing the mapping between the host logical volume and theinternal logical volume.

One method is carried out by the indication issued from the applicationprogram 3-1 in the host computer 3-2.

This method includes roughly two steps.

In the step 1, the application program takes, from the configurationinformation 3-17 in the storage control device 3-1, the informationof 1) configuration of the host logical volumes, 2) configuration of theinternal logical volumes and 3) mapping between the host logical volumeand the internal logical volume.

This step 1 is carried out by the application program if required. Forexample, the step 1 is performed when the application program 3-12 isstarted or by an evident indication effected when an operator of theapplication program 3-12 knows a variation of the physical or logicalconfiguration of the storage control device 3-1.

In the step 2, the application program 3-12 performs the change mappingbetween the host logical volume and the internal logical volume on thebasis of the configuration information of the storage control device 3-1taken in the application program 3-12 in the step 1. The step 2 is alsocarried out by the application program 3-12 if required.

First, the operation of the step 1 will be explained.

An application program interface (API) 3-18 is called in order that theapplication program 3-12 to be executed in the host computer 3-2 takesthe configuration information 3-17 which the storage control device 3-1has. The API 3-18 is provided by a control program 3-19 which is alsoexecuted in the host computer 3-2. The control program 3-19 is a programhaving a function issuing an indication to the configuration informationreading portion 3-20 for reading out configuration information 3-17 anda function issuing an indication to the mapping change and power controlportion 3-14 for changing the mapping between the host logical volumeand the internal logical volume.

The control program 3-19 can access another kind of host logical volume(for control) 3-11 (to be explained later) in the storage control device3-1 through the HBA 3-21 and the port 3-15. This host logical volume(for control) 3-11 does not store the data of the application programbut is used to control the storage control device 3-1. The term“control” is here understood as signifying the function for reading outthe configuration information 3-17 and the function for changing themapping between the host logical volume and the internal logical volume.

The interior of the host logical volume (for control) 3-11 is divided inplurality of regions. A particular function is determined with respectto each region. For example, the region 3-22 is used for reading out theconfiguration information 3-17. When the logical block assigned in theregion 3-22 is read out by the host computer 3-2, in concrete terms, bythe control program 3-19, the configuration information 3-17 is includedin the block.

For example, moreover, the region 3-23 is used for the function forchanging the mapping between the host logical volume and the internallogical volume, so that the mapping between the host logical volume andthe internal logical volume can been changed when the control program3-19 writes a required information on the logical block assigned in theregion 3-23. (This procedure will be explained in connection with thestep 2 later.)

Details of processing effected by the operations in step 1 will bedisclosed herein.

The application program 3-12 to be executed in the host computer 3-2calls out the API 3-18 for reading out the configuration information3-17 of the storage control device 3-1 (3-24).

Similarly, the control program 3-19 to be executed in the host computer3-2 recognizes the indication for reading out of the configurationinformation 3-17 by the fact that the API 3-18 is called. Then, theprogram 3-19 issues, to the host logical volume (for control) 3-11, acommand for reading out the region 3-22 to be used for the function forreading out the configuration information 3-17 in the host logicalvolume (for control) 3-11 through the HBA 3-21 and the port 3-15 (3-25).

The command received on the side of the channel adapters is processed bythe program executed by the microprocessor in the channel adapter.

The program is operated on the basis of the flow chart as shown in FIG.6 every time the command is received from the host computer 3-2. First,the reception of the command is detected (6-1).

Then, the program checks the kind of the host logical volumes (forcontrol or for data) (6-2). This can be effected by examining theconfiguration information of the host logical volume held in theconfiguration information 3-17 by the use of the number of the hostlogical volume contained in the command.

As a result, the program can identify whether the relevant host logicalvolume is for control or data (6-3). As the command has been issued forthe host logical volume (for control) 3-11 in the step 1, the hostlogical volume is judged it to be for control.

Thereafter, the program checks the kind (reading, writing or others) ofthe command (6-4). This is effected by checking command codes includedin the command.

As a result, the program can identify the kind of command (reading,writing or others) (6-5). As the command has been issued for reading theregion 3-22 in the host logical volume (for control) 3-11 in the step 1,the kind of the command is judged to be “reading”.

Then, the program checks which region in the relevant host logicalvolume (for control) 3-11 (6-6) should be read out. This is effected bychecking the numbers of the logical block contained in the command.

As the result, the program can know the processing to be effected (6-7).As the region 3-22 assigned for reading performance for theconfiguration information 3-17 is designated in the step 1, theprocessing to be effected is judged to be “reading of the configurationinformation 3-17”. Then, the program performs the configurationinformation reading processing 6-8.

The configuration information reading processing 6-8 is effected by theconfiguration information reading portion 3-20 which is part of theprogram executed by the microprocessor in the channel adapter.

The configuration information reading portion 3-20 reads theconfiguration information 3-17 held in the shared memory 3-16 (3-26).

The configuration information reading portion 3-20 sends the readconfiguration information 3-17, as a response to the command for readingthe region 3-22 (3-27), to the control program 3-19 through the paththrough which the command has been issued.

The control program 3-19 sends the configuration information 3-17obtained from the interior of the storage control device 3-1 to theapplication program 3-12 which has called the API 3-18 for reading theconfiguration information 3-17 (3-28).

In this manner, the application program 3-12 obtains the configurationinformation 3-17 in the storage control device 3-1 described above,whereby the application program 3-12 can know 1) the configuration ofthe host logical volume, 2) the configuration of the internal logicalvolume, and 3) the mapping between the host logical volume and theinternal logical volume.

Details of processing effected by the operation in step 2 will bedisclosed herein.

The application program 7-12 to be executed in the host computer 7-2calls out the API 7-18 for changing the mapping between the host logicalvolume and the internal logical volume in the storage control device 7-1(7-24).

Similarly, the control program 7-19 to be executed in the host computer7-2 recognizes the indication for changing the mapping between the hostlogical volume and the internal logical volume by the fact that the API7-18 has been called. The control program 7-19 sends a command forwriting information required for changing the mapping between the hostlogical volume and the internal logical volume (the number of the hostlogical volume to be changed and the number of the internal logicalvolume to be newly mapped thereto) to the region 7-22 which is in thehost logical volume (for control) 7-11 and to be used for the changemapping between the host logical volume and the internal logical volume.This command is sent through the HBA 7-21 and the port 7-15 to the hostlogical volume (for control) 7-11 (7-25).

The command received on the side of the channel adapters is processed bythe program executed by the microprocessor in the channel adapter.

As described above, the program is operated on the basis of the flowchart as shown in FIG. 6 every time the command is received from thehost computer 7-2. First, the reception of the command is detected(6-1).

Then, the program checks the kind of the host logical volume (forcontrol or for data) (6-2). This can be effected by examining theconfiguration information of the host logical volume held in theconfiguration information 3-17 by the use of the number of the hostlogical volume contained in the command.

As a result, the program can identify whether the relevant host logicalvolume is for control or data (6-3). As the command has been issued forthe host logical volume (for control) 3-11 in the step 2, the hostlogical volume is judged to be for control.

Thereafter, the program checks the kind (reading, writing or others) ofthe command (6-4). This is effected by checking command codes includedin the command.

As a result, the program can identify the kind of command (reading,writing or others) (6-5). As the command for writing on the region 7-22in the host logical volume (for control) 7-11 has been issued in thestep 2, the kind of the command is judged to be “writing”.

Then, the program checks on which region in the relevant host logicalvolume (for control) 7-11 should be written (6-9). This is effected bychecking the numbers of the logical block contained in the command.

As a result of this, the program knows the processing to be performed(6-10). In the step 2, as the region 7-23 is designated as a regionassigned for the function for changing the mapping between the hostlogical volume and the internal logical volume, the processing to beperformed is judged to be the change mapping between the host logicalvolume and the internal logical volume. Then, the program carries outthe processing 6-11 for changing the mapping between the host logicalvolume and the inner logical volume.

The processing 6-11 for changing the mapping between the host logicalvolume and the internal logical volume is carried out by a mappingchange control and power control portion 7-14 which is part of theprogram to be executed by the microprocessor in the channel adapter.

The mapping change control and power control portion 7-14 carries outthe processing for changing the mapping between the host logical volumeand the internal logical volume on the basis of a flow chart as shown inFIG. 8.

A processing performed at the beginning is the examination of theinformation written on the region 23 (the number of the host logicalvolume to change its mapping and the number of the internal logicalvolume to be newly mapped thereto) (8-1).

Next, carried out is to check whether there is (are) other internallogical volume(s) mapped to other host logical volume(s) in the ECCgroup including the internal logical volume mapped to the host logicalvolume designated in the region 7-23 (8-2). This examination is effectedby retrieving a table holding the numbers of the ECC groups exemplarilyshown in FIG. 5 and the numbers of the internal logical volumes includedin the respective relevant ECC groups.

When it is judged that there is no other internal logical volume as aresult of the retrieval of the tables exemplarily shown in FIG. 5, theprogram causes the host logical volume designated in the region 7-23 tostop a spindle motor of the HDD belonging to the ECC group including theinternal logical volume presently in the mapping relation (8-3). This iseffected by a command for stopping the spindle motor, which is sent fromthe program to be executed in the microprocessor in the channel adapterto the HDD belonging to the relevant ECC group (7-26). Explaining thecommand for stopping the spindle motor with reference to FIG. 2, thecommand is sent from the port 2-8 of the disk adapter 2-7 through theFC-Al of fiber channel connecting the HDD 2-6, or fabric or parallelSCSI or ATA, S-ATA or the like.

There is a rotating time of the spindle motor as an element fordetermining MTBF which is a parameter of reliability of the HDD. Asdisclosed in the present invention, the time presumed from the MTBF tillfault occurs can be prolonged by stopping the spindle motor. As it hasbeen known that there is no host logical volume mapped to the internallogical volume in the relevant ECC group, it can be regarded that thereis no access from the host computer and therefore if the spindle motorof the HDD belonging to the relevant ECC group is stopped, the hostcomputer can be operated without any problem.

A configuration as shown in FIG. 9 is used to hold the numbers of theECC groups having the HDD of which spindle motor is rotating and thenumbers of the internal logical volumes provided by its ECC groups. Itmay be regarded that there is HDD having a rotating spindle motor in theECC group having the configuration coupled at a pointer, and number heldin the configuration.

The configuration exemplarily as shown in FIG. 9 is held as one of theconfiguration information 7-17 in the shared memory 7-16.

The processing to be carried out next by the program is to remove theinformation concerning the ECC group, to which the HDD having thestopped spindle motor belongs, from the configuration existing in theconfiguration information 7-17 as shown in FIG. 9. Therefore, theprocessing to be carried out by the program is to change state of theHDDs of ECC including relevant internal logical volume as “STOPPED” orto update the configuration information 7-17 so that there is no HDDhaving a rotating spindle motor, as a result of the above removal of theinformation (8-4).

The configuration indicating the internal logical volume currentlymapped to the host logical volume designated in the region 7-23 is theconfiguration 9-1 in FIG. 9. And the configuration indicating the ECCgroup to which the internal logical volume belongs is the configuration9-2.

Therefore, in order to update the configuration as exemplarilyillustrated in FIG. 9 by the program, removed is the informationconcerning the ECC group to which the HDD belongs, in which HDD thespindle motor has been stopped. In other words, the portion 9-3surrounded by dotted lines is removed. This is concretely effected byreplacing pointers by new one by the program. (The pointers 9-3 and 9-4are removed and the pointer 9-5 is newly set.)

In this manner, the information concerning the ECC group containing theinternal logical volume currently mapped to the host logical volumedesignated in the region 7-23 is removed resulting in the state that inthe relevant ECC, there is no HDD in which a rotating spindle motor hasbeen stopped.

Then, the program checks whether the spindle motor is rotating, which isof the HDD in the ECC group including the internal logical volumedesignated to be newly mapped to the host logical volume designated inthe region 7-23 (8-5). This is effected by retrieving the configurationas exemplarily shown in FIG. 10 (the same configuration in FIG. 9,although being divided for convenience of explanation) included in theconfiguration 7-17. If the number of the relevant ECC group is found inthe configuration exemplarily shown in FIG. 10, the spindle motor of theHDD in the ECC group is rotating.

If it is judged that the spindle motor of the HDD is not rotating, whoseHDD is in the ECC group containing the internal logical volumedesignated to be newly mapped to the host logical volume designated inthe region 7-23, the program causes to rotate the spindle motor of theHDD belonging to the ECC including the internal logical volume nowmapped to the host logical volume designated in the region 7-23 (8-6).

In the similar manner to the stoppage of the spindle motor of the HDDdescribed above, this is effected by sending a command for rotating thespindle motor from the program to be executed in the microprocessor inthe channel adapter to the HDD belonging to the relevant ECC group(7-26). Explaining the command for stopping the spindle motor withreference to FIG. 2, the command is sent from the port 2-8 of the diskadapter 2-7 through the FC-AL of fiber channel connecting the HDD 2-6,fabric or parallel SCSI, or ATA, SATA or the like.

The next processing to be effected by the program is to add theinformation concerning the ECC group to which the HDD belongs, whosespindle motor has been rotated, from the configuration in theconfiguration information 7-17 as exemplarily shown in FIG. 10 to changestate of the HDDs in ECC including designated internal logical volume as“ROTATING” or to update the configuration information 7-17 in a mannerthat there is the HDD having the rotating spindle motor in the relevantECC group (8-7).

If the portion 10-1 surrounded by dotted lines in FIG. 10 is theconfiguration illustrating the ECC group of which spindle motor is newlyrotated and the internal logical volume newly designated to be mapped tothe host logical volume designated in the region 7-23, the programdeletes the present pointer 10-2 and newly sets pointers 10-3 and 10-4.

In this manner, the portion surrounded by the dotted lines isincorporated in the configuration holding the number of the ECC grouphaving the HDD in which the spindle motor is rotating as exemplarilyshown in FIG. 10 and the number of the internal logical volume providedby its ECC group so that thereafter it is regarded that the spindlemotor of the HDD in the relevant ECC group is rotating.

Then, the next processing to be effected by the program is to bring theinternal logical volume designated in the region 7-23 into the mappingrelation to the host logical volume designated in the region 7-23 in thechange-over portion 7-13 (7-28).

This is effected by updating configuration information to map thedesignated internal logical volumes to designated host logical volumenewly or by updating the table for holding mapping of the number of thehost logical volume and the number of the internal logical volume mappedto the host logical volume as exemplarily shown in FIG. 4 (8-8).

As disclosed in detail described above, the configuration of the hostlogical volume and the mapping of the internal logical volume aremodified without varying the configuration of the host logical volumerecognized by the host computer at all. This process makes it possibleto access a plurality of (internal) logical volumes different in contentfrom the side of the host computer through the host logical volumehaving the same identifier without any operation for again recognizingthe host logical volume on the side of the host computer.

In the second method, instead of the application program 3-12 in thehost computer 3-2, an operator of the host computer 3-2 directlyoperates the User Interface (UI) 3-29 of the control program 3-19 tochange the mapping between the host logical volume and the internallogical volume.

The operator of the host computer 3-2 can designate the informationwhich was given through the API 3-18 by the application program, thatis, 1) the number of the host logical volume as an object to be changed,and 2) the number of the internal logical volume to be newly into mappedthereto.

Moreover, the operator of the host computer 3-2 can obtain, through theUI 3-29, the information which was obtained by the application programthrough the API 3-18, that is, 1) the configuration of the host logicalvolume, 2) the configuration of the internal logical volume, and 3) themapping between the host logical volume and the internal logical volume.

In the second method, the operation for the control program 3-19 is onlychanged from the API 3-18 to the UI 3-29, but the interface between thecontrol program 3-19 and the host logical volume (for control) 3-11 isexactly the same. Therefore, the same are the operation for obtainingthe configuration information 3-17 in the storage control device 3-1 inthe step 1 disclosed above, the operation of the program in the channeladapters in the storage control device 3-1 for changing the mappingbetween the host logical volume and the internal logical volume in step2, and the operation of the program in the disk adapter.

The second embodiment will then be explained.

There are two different features from the embodiment already explained.

The first different feature of the present embodiment is no use of thehost logical volume (for control) 7-11 as in FIG. 7. Instead of the hostlogical volume (for control) 7-11, API for control 11-11 provided in thestorage control device is used. The API for control 11-11 is provided bythe program equipped in the storage control device 11-1. This program isoperated in 1) the channel adapter equipped in the storage controldevice 11-1 or 2) service processor equipped in the storage controldevice 11-1.

The second difference of the present embodiment concerns with thetransfer path of control information between the storage control device11-1 and the host computer 11-2. In the embodiment already explained,the control program 7-19 carries out the reading the configurationinformation and writing the control information with respect to the hostlogical volume (for control) through the HBA 7-21 and the port 7-15. Onthe other hand, in the second embodiment, the control program 11-19calls the control API 11-11 through the network interface card (NIC)11-24 and the port 11-25 on the side of the storage control device 11-1instead of the HBA 11-21 to carry out the reading of the configurationinformation and writing of the control information.

Although there are two differences described above, the basic processesof the reading out of the structural information 11-20 and the changemapping between the host logical volume and the internal logical volumeare substantially similar to those in the embodiment already explained.

Next, the third embodiment will be disclosed.

In the embodiments already explained, a plurality of the HDD are dividedinto the ECC groups as shown at ECC group 2-12 in FIG. 2 and the memoryregions made by the ECC groups are divided into one or plural regions toform the internal logical volumes, and the internal logical volumes arebrought into mapping relation to the host logical volume. In the presentembodiment, one HDD is used instead of the ECC groups without using theinternal logical volumes provided by the ECC groups. The memory regionmade by the one HDD is divided into one or plural regions to forminternal logical volumes which are then brought into the mappingrelation to the host logical volume.

The third embodiment is substantially similar to the embodiments alreadyexplained with the exception that one HDD is used instead of the ECCgroups.

In either case, the storage control device for storing data to beprocessed by the host computer is effective in utilizing the device forback-up and restoring of data or in utilizing as the archive.

Although the configuration of carrying out the present invention isexplained using the HDD having the S-ATA as interconnection interface,it is to be understood that the invention is not limited to such aconfiguration and may be applicable to storage control devices utilizingother HDD's.

While the invention has been explained with reference to embodimentsthereof which are intended to make the invention be easily understoodand not to limit the invention. The invention can be modified andimproved without departing from the spirit and scope of the inventionand includes equivalents and the like in its scope.

1. A storage system, comprising: an interface coupled to a computer; aplurality of disk drives, including a first plurality of disk drives anda second plurality of disk drives, said first plurality of disk drivesconfiguring a first logical volume, said second plurality of disk drivesconfiguring a second logical volume; and a control unit, coupled to theinterface and the plurality of disk drives, providing for the computer aplurality of virtual volumes, wherein said storage system has a firstmapping in which a first one of said plurality of virtual volumes ismapped to said first logical volume, and a second mapping in which saidfirst virtual volume is mapped to said second logical volume, whereinafter said interface receives a command for accessing said first virtualvolume from the computer, said control unit converts the command foraccessing said first virtual volume into a second command for accessingsaid first logical volume in said first mapping, and said control unitconverts the command for accessing said first virtual volume into athird command for accessing said second logical volume in said secondmapping, and wherein, when said storage system receives a command forchanging a status of said storage system between said first mapping andsaid second mapping from said computer, said control unit changes astatus of said storage system between said first mapping and said secondmapping, and changes a condition of each spindle motor of said firstplurality of disk drives and said second plurality of disk drivesaccording to said changing a status of said storage system between saidfirst mapping and said second mapping.
 2. A storage system according toclaim 1, wherein, when said storage system receives a command forchanging a status of said storage system from said first mapping to saidsecond mapping from said computer, said control unit changes a status ofsaid storage system from said first mapping to said second mapping andcauses said each spindle motor of said first plurality of disk drives tostop.
 3. A storage system according to claim 1, wherein said firstplurality of disk drives further configure a third logical volume, andwherein, when said storage system receives a command for changing astatus of said storage system from said first mapping to said secondmapping from said computer and said third logical volume is provided tothe computer, said control unit changes a status of said storage systemfrom said first mapping to said second mapping and causes said eachspindle motor of said first plurality of disk drives to continuerotation.
 4. A storage system according to claim 1, wherein, when saidstorage system receives a command for changing a status of said storagesystem from said first mapping to said second mapping from saidcomputer, said control unit changes a status of said storage system fromsaid first mapping to said second mapping and causes said each spindlemotor of said plurality of disk drives to rotate.
 5. A storage systemaccording to claim 1, wherein said second logical volume storesdifferent content from that of said first logical volume.
 6. A storagesystem according to claim 1, wherein said command is issued by saidcomputer and received by said interface.
 7. A storage system accordingto claim 6, wherein said control unit has relationship information aboutsaid plurality of virtual volumes and said plurality of logical volumes.8. A storage system according to claim 7, wherein said second virtualvolume is used for receiving instructions from said computer, andwherein, when the control unit recognizes that an instruction is a writecommand, the control unit writes data into a specified area of thesecond virtual volume.
 9. A storage system according to claim 8, whereinthe control unit sends said relationship information to the computer ifthe interface receives a read command for reading data stored in asecond specified area of the second virtual volume, and wherein aninstruction is created by the computer based on the relationshipinformation sent by the control unit.
 10. A storage system according toclaim 9, wherein said plurality of disk drives are adapted for S-ATAprotocol.
 11. A storage system according to claim 1, further comprisinga second interface coupled to said control unit, wherein said secondinterface is coupled to a management computer, and wherein instructionsare issued from the management computer and received by the secondinterface.
 12. A method comprising: receiving, from a computer, acommand for accessing a first virtual volume of a storage system;converting, via a control unit, said command for accessing said firstvirtual volume into a second command for accessing a first logicalvolume; converting, via said control unit, the command for accessingsaid first virtual volume into a third command for accessing a secondlogical volume; receiving, from said computer, a command for changing astatus of said storage system between a first mapping and a secondmapping; changing, via said control unit, a status of said storagesystem between said first mapping and said second mapping; and changing,via said control unit, a condition of each spindle motor of a firstplurality of disk drives and a second plurality of disk drives accordingto said changing a status of said storage system between said firstmapping and said second mapping, wherein said first plurality of diskdrives configures said first logical volume, and wherein said secondplurality of disk drives configures said second logical volume.
 13. Amethod according to claim 12, further comprising changing a status ofsaid storage system from said first mapping to said second mapping andcausing said each spindle motor of said first plurality of disk drivesto stop when said storage system receives a command for changing astatus of said storage system from said first mapping to said secondmapping from said computer.
 14. A method according to claim 12, furthercomprising changing a status of said storage system from said firstmapping to said second mapping and causing said each spindle motor ofsaid first plurality of disk drives to continue rotation when saidstorage system receives a command for changing a status of said storagesystem from said first mapping to said second mapping from said computerand a third logical volume is provided to the computer, wherein saidfirst plurality of disk drives further configures said third logicalvolume.
 15. A method according to claim 12, further comprising changinga status of said storage system from said first mapping to said secondmapping and causing said each spindle motor of said plurality of diskdrives to rotate when said storage system receives a command forchanging a status of said storage system from said first mapping to saidsecond mapping from said computer.
 16. A method according to claim 12,wherein said second logical volume stores different content from that ofsaid first logical volume.
 17. A method according to claim 12, whereinsaid command is issued by said computer and received by an interface.18. A method according to claim 17, wherein said control unit hasrelationship information about virtual volumes and logical volumes. 19.A method according to claim 18, further comprising: receiving, via thesecond virtual volume, instructions from said computer; and writing datainto a specified area of the second virtual volume when the control unitrecognizes that an instruction is a write command.
 20. A methodaccording to claim 19, further comprising: sending said relationshipinformation to the computer if a read command for reading data stored ina second specified area of the second virtual volume is received, andcreating, by the computer, an instruction based on the relationshipinformation.
 21. A method according to claim 20, wherein said firstplurality of disk drives and said second plurality of disk drives areadapted for S-ATA protocol.
 22. A method according to claim 20, furthercomprising: issuing instructions from a management computer to a secondinterface.